/**
 * 手动计数断言
 */
exports.testPony = function(test) {
  var count = 0; // 断言计数
  if (false) {
    test.ok(false, 'This should not have passed.');
    count++; // 添加断言计数
  } 
  test.ok(true, 'This should have passed.');
  count++; // 添加断言计数
  test.equal(count, 2, 'Not all assertions triggered.'); // 测试断言计数
  test.done();
};

/*
// 优化
exports.testPony = function(test) {
  test.expect(2);
  if (false) {
    test.ok(false, 'This should not have passed.');
  }
  test.ok(true, 'This should have passed.');
  test.done();
}
*/
